#include <QCoreApplication>
#include <cstring>

#include <array>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    //zero based index array
    int age[4] = {23,12,43,55};
    age[2] = 22;
    qInfo()<<age[0];
    qInfo()<<age[1];
    qInfo()<<age[2];
    qInfo()<<age[3];
    qInfo()<<age;

    array<int,5> cars;
    cars[2] = 99;
    qInfo()<<cars[0];
    qInfo()<<cars[1];
    qInfo()<<cars[2];
    qInfo()<<cars[3];
    qInfo()<<cars[4];
    qInfo()<<cars[5];


    return a.exec();
}
